package com.zamxie.demo.controller;

import com.amazonaws.services.s3.model.Bucket;
import com.zamxie.oss.core.OssTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description TODO
 * @Author zamxie
 * @Date 2024/3/25 上午11:25
 * @Version 1.0
 **/
@RestController
public class OssContorller {

    @Autowired
    private OssTemplate ossTemplate;

    public void getAllBuckets(){
        List<Bucket> allBuckets = ossTemplate.getAllBuckets();
    }



}
